﻿using System;
using Colorful.Furniture.Extensions;

namespace Colorful.Furniture.BasicDataManagement
{
    /// <summary>
    /// 列表输出体
    /// </summary>
    public class LocationPagedOutputDto : LocationBaseOutputDto
    {
        /// <summary>
        ///  创建时间
        /// </summary>
        public DateTime AddTime { get; set; }

        /// <summary>
        ///  创建时间
        /// </summary>
        public string AddTimeFormat => AddTime.ToDateString();

    }

    /// <summary>
    /// 详细信息输出体
    /// </summary>
    public class LocationDetailOutputDto : LocationBaseOutputDto
    {

        public bool IsDeleted { get; set; }
        public DateTime? DeletedTime { get; set; }
        public Guid? ModifyUserId { get; set; }
        public DateTime? ModifyTime { get; set; }
    }

    /// <summary>
    /// 基础输出体
    /// </summary>
    public class LocationBaseOutputDto
    {

        /// <summary>
        /// 编码
        /// </summary>
        public Guid Id { get; set; }

        /// <summary>
        /// 区域名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        ///  备注
        /// </summary>
        public string Remark { get; set; }

        /// <summary>
        /// 状态（0：禁用；1：启用）
        /// </summary>
        public int? Status { get; set; }

        /// <summary>
        /// 区域
        /// </summary>
        public string AreaName { get; set; }

        /// <summary>
        /// 仓库
        /// </summary>
        public string WarehouseName { get; set; }

        /// <summary>
        /// 行号/层
        /// </summary>
        public int RowCode { get; set; }

        /// <summary>
        /// 列号
        /// </summary>
        public int ColumnCode { get; set; }


    }

}
